package com.algorithms.heap;

public class HeapNode<T> {
	private int key;
	private T data;
	
	public HeapNode(int key){
		this.key = key;
		this.data = null;
	}
	
	public HeapNode(int key, T data){
		this.key = key;
		this.data = data;
	}
	
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}

}
